package cn.lf.dto.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel("创建用户订单信息请求类")
public class UserOrderInfoGenReqDTO {

    @ApiModelProperty("总金额")
    private BigDecimal totalPay;

    @ApiModelProperty("店铺id")
    private String shopId;

    @ApiModelProperty("买家留言")
    private String buyerMessage;

    @ApiModelProperty("商品信息列表")
    private List<productInfo> productInfoList;

    @Data
    @ApiModel("商品信息")
    public static class productInfo{

        @ApiModelProperty("商品id")
        private String productId;

        @ApiModelProperty("商品数量")
        private Integer productNumber;

        @ApiModelProperty("商品单价")
        private Double productPrice;

    }

}
